package com.glacier.framework.boot.rest.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * date 2023-12-31 17:21
 *
 * @author glacier
 * @version 1.0
 */
@RestController
@RequestMapping("/lang")
public class LangController {
    @RequestMapping("/test1")
    public String test1() {
        return "中文";
    }

    @RequestMapping("/test2")
    public byte test2() {
        return (byte) 1;
    }

    @RequestMapping("/test3")
    public short test3() {
        return 1;
    }

    @RequestMapping("/test4")
    public int test4() {
        return 1;
    }

    @RequestMapping("/test5")
    public long test5() {
        return Long.MAX_VALUE;
    }

    @RequestMapping("/test6")
    public float test6() {
        return 1.0f;
    }

    @RequestMapping("/test7")
    public double test7() {
        return 1.0d;
    }

    @RequestMapping("/test8")
    public boolean test8() {
        return true;
    }

    @RequestMapping("/test9")
    public char test9() {
        return 'a';
    }

    @RequestMapping("/test10")
    public void test10() {
    }

}
